package com.example.seatabusiness.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName: OrderService
 * @Description: 订单服务：保存订单信息
 */
@FeignClient(value = "seata-order")
@Service
public interface SeataOrderService {

    @RequestMapping(path = "/order", method = RequestMethod.GET)
    String order(@RequestParam("userId") String userId, @RequestParam("commodityCode") String commodityCode, @RequestParam("orderMoney") int orderMoney);

}
